package parser;

public class ParserException extends Exception {

	private static final long serialVersionUID = -5143842741205724642L;
	protected char illegalChar;
	
	public ParserException() {
		super("Parser Exception");
	}
	public ParserException(char c) {
		super ("Parser Exception. Illegal character found " + c);
		this.illegalChar = c;
	}
	
	public char getIllegalChar() {
		return illegalChar;
	}

}
